package projet.test;
import org.junit.Test;

import projet.CustomException;

import junit.framework.TestCase;

public class _TEST_CustomException extends TestCase
{
	public void testGeneric1()
	{
		String s = "Hello World!";
		try
		{
			throw new CustomException(s);
		} catch (CustomException e)
		{
			assertTrue(e.getMessage().equals(s));
		}
	}

	@Test(expected=CustomException.class)
	public void testGeneric2() 
	{
		String s = "Hello World!";
		new CustomException(s);

	}
}
